The placeholder string is truncated when there's no
room for it in entry's width.
So, by ellipsizing it, the user can notice the text
was truncated so that they can workaround that by,
for example, maximizing the window.
https://bugzilla.gnome.org/show_bug.cgi?id=702763
attr->start_index = 0;
attr->end_index = G_MAXINT;
pango_attr_list_insert (tmp_attrs, attr);
+ pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);
}
if (preedit_length)
get_layout_position (entry, &x, &y);
+ if (show_placeholder_text (entry))
+ pango_layout_set_width (layout, PANGO_SCALE * gdk_window_get_width (entry->priv->text_area));
+
cairo_move_to (cr, x, y);
gdk_cairo_set_source_rgba (cr, default_color);
pango_cairo_show_layout (cr, layout);